<div class='right-cont wrap-teachers' ng-controller='TeacherList'>
	<div class='title'>讲师列表<i class='fa fa-spin fa-spinner' ng-if='loading'></i></div>
	<div class='content'>
		<div class='box-ops'>
			<button class='btn btn-primary' data-toggle='modal' data-target='.modal.teacher-add'>添加</button>
		</div>
		<div class='box-list'>
			<table class='table table-list'>
				<tr>
					<td>讲师ID <span class='fa fa-sort'></span></td>
					<td>名称<span class='fa fa-sort'></span></td>
					<td>性别<span class='fa fa-sort'></span></td>
					<td>简介<span class='fa fa-sort'></span></td>
					<td>手机号<span class='fa fa-sort'></span></td>
					<td>添加时间<span class='fa fa-sort'></span></td>
					<td>操作<span class='fa fa-sort'></span></td>
				</tr>
				<tr ng-repeat='item in list'>
					<td>{{item.id}}</td>
					<td>{{item.name}}</td>
					<td>{{item.sex_text}}</td>
					<td>{{item.sim_decipt}}</td>
					<td>{{item.phone}}</td>
					<td>{{item.create_date}}</td>
					<td>
						<button class='btn btn-primary btn-xs btn-w-xs' ng-click='edit(item.id)'>编辑</button>
						<button class='btn btn-warning btn-xs btn-w-xs' ng-click='delete(item.id)'>删除</button>
					</td>
				</tr>
			</table>
			<div class='box-page' ng-bind-html='pageHtml'></div>
		</div>
	</div>
	
	<!--教师编辑-->
	<div class='modal fade teacher-edit'>
        <div class='modal-dialog'>
            <div class='modal-content' align='center'>
                <div class='modal-header'>
                    讲师信息更改
                    <a class='close' data-dismiss='modal'>&times;</a>
                </div>
                <div class='modal-body'>
                	<table class='table-form'>
                    	<tr>
                    		<td class='td-label'>姓名:</td>
                    		<td>
                    			<input type='text' class='form-control' ng-model='eTeacher.name'>
                    		</td>
                    	</tr>
                    	<tr>
                    		<td class='td-label'>性别:</td>
                    		<td>
                    			<div class='box-radio'>
                    				<input type='radio' ng-model='eTeacher.sex' value='1' name='sex'>男
                    			</div>
                    			<div class='box-radio'>
                    				<input type='radio' ng-model='eTeacher.sex' value='2' name='sex'>女
                    			</div>
                    		</td>
                    	</tr>
                    	<tr>
                    		<td class='td-label'>手机:</td>
                    		<td><input type='text' class='form-control' ng-model='eTeacher.phone'></td>
                    	</tr>
                    	<tr>
                    		<td class='td-label'>描述:</td>
                    		<td>
                    			<textarea ng-model='eTeacher.decipt' class='form-control'></textarea>
                    		</td>
                    	</tr>
                    </table>
                </div>
                <div class='modal-footer'>
                    <button class='btn btn-primary btn-sm btn-w-sm' ng-click='save()'>确认</button>
                    <button class='btn btn-default btn-sm btn-w-sm' data-dismiss='modal'>取消</button>
                </div>
            </div>
        </div>
    </div>
    <!--教师添加-->
	<div class='modal fade teacher-add'>
        <div class='modal-dialog'>
            <div class='modal-content' align='center'>
                <div class='modal-header'>
                    讲师添加
                    <a class='close' data-dismiss='modal'>&times;</a>
                </div>
                <div class='modal-body'>
                	<table class='table-form'>
                    	<tr>
                    		<td class='td-label'>姓名:</td>
                    		<td>
                    			<input type='text' class='form-control' ng-model='aTeacher.name'>
                    		</td>
                    	</tr>
                    	<tr>
                    		<td class='td-label'>性别:</td>
                    		<td>
                    			<div class='box-radio'>
                    				<input type='radio' ng-model='aTeacher.sex' value='1' name='sex'>男
                    			</div>
                    			<div class='box-radio'>
                    				<input type='radio' ng-model='aTeacher.sex' value='2' name='sex'>女
                    			</div>
                    		</td>
                    	</tr>
                    	<tr>
                    		<td class='td-label'>手机:</td>
                    		<td><input type='text' class='form-control' ng-model='aTeacher.phone'></td>
                    	</tr>
                    	<tr>
                    		<td class='td-label'>描述:</td>
                    		<td>
                    			<textarea ng-model='aTeacher.decipt' class='form-control'></textarea>
                    		</td>
                    	</tr>
                    </table>
                </div>
                <div class='modal-footer'>
                    <button class='btn btn-primary btn-sm btn-w-sm' ng-click='add()'>确认</button>
                    <button class='btn btn-default btn-sm btn-w-sm' data-dismiss='modal'>取消</button>
                </div>
            </div>
        </div>
    </div>
</div>